package servidor;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import interfaces.IServidorConsultaIndices;


public class ServidorConsultaIndices extends UnicastRemoteObject implements IServidorConsultaIndices {

	public ServidorConsultaIndices() throws RemoteException {
		super();
	}

	private static final long serialVersionUID = 1L;
	private Float dolares;
	private Float euros;
	private Float IOF;

	public float converterDolarReal(float valor) throws RemoteException {
		this.dolares=valor*(23105/10000);
		return this.dolares;
	}

		public float converterEuroReal(float valor) throws RemoteException {
		this.euros = valor*(30643/10000);
		return this.euros;
	}

	public float consultarIOF() throws RemoteException {
		this.IOF = (float) 0.38;
		return this.IOF;
	}

}
